<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<!--会员编辑-->
<meta charset="utf-8">
<head th:include="include :: header" ></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input id="username" name="username" type="hidden" th:value="${user.username}">
							<input  name="password" class="form-control" type="hidden" th:value="${user.password}">
							<div class="form-group">
								<label class="col-sm-3 control-label">会员级别：</label>
								<div class="col-sm-8">

									<select th:filed="${user.level}" th:value="${user.level}" id="level" name="level">
										<option th:selected="${user.level == '-1'}" value="-1" >请选择</option>
										<option th:selected="${user.level == '0'}" th:value="0">商家</option>
										<option th:selected="${user.level == '1'}" th:value="1">二级代理</option>
										<option th:selected="${user.level == '2'}" th:value="2">一级代理</option>
										<option th:selected="${user.level == '3'}" th:value="3">市</option>
									</select>
								</div>
							</div>
							<input id="role" name="role" type="hidden" th:value="${role}">
							<div class="form-group" hidden id="member">
								<label class="col-sm-3 control-label">会员等级：</label>
								<div class="col-sm-8">

									<select th:filed="${user.grade}" th:value="${user.grade}" id="grade" name="grade">
										<option th:selected="${user.grade == '无'}" value="-1">无</option>
										<option th:selected="${user.grade == '一星'}" th:value="2">一星</option>
										<option th:selected="${user.grade == '二星'}" th:value="3">二星</option>
										<option th:selected="${user.grade == '三星'}" th:value="4">三星</option>
										<option th:selected="${user.grade == '四星'}" th:value="5">四星</option>
										<option th:selected="${user.grade == '五星'}" th:value="6">五星</option>
										<option th:selected="${user.grade == '六星'}" th:value="7">六星</option>
										<option th:selected="${user.grade == '七星'}" th:value="8">七星</option>
										<option th:selected="${user.grade == '八星'}" th:value="9">八星</option>
										<option th:selected="${user.grade == '九星'}" th:value="10">九星</option>
									</select>
								</div>
							</div>
							<!--<div class="form-group">
								<label class="col-sm-3 control-label">真实姓名：</label>
								<div class="col-sm-8">
									<input id="password" name="password" class="form-control"
										   type="password">
								</div>
							</div>-->

							<!--<div class="form-group">
								<label class="col-sm-3 control-label">性别：</label>
								<div class="col-sm-8">
									<input id="password" name="password" class="form-control"
										   type="password">
								</div>
							</div>-->
							<!--<div class="form-group">
								<label class="col-sm-3 control-label">年龄：</label>
								<div class="col-sm-8">
									<input id="password" name="password" class="form-control"
										   type="password">
								</div>
							</div>-->
							<div class="form-group" >
								<label class="col-sm-3 control-label">手机号：</label>
								<div class="col-sm-8">
									<input readonly id="mobile" name="mobile" class="form-control"
										   th:value="${user.mobile}">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">证件编号：</label>
								<div class="col-sm-8">
									<input id="idcard" name="idcard" class="form-control"
										   th:value="${user.idcard}">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">会员地址：</label>
								<div class="col-sm-8">
									<input id="liveAddress" name="liveAddress" class="form-control"
										   th:value="${user.liveAddress}">
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>

	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/sys/online/add.js">
	</script>
</body>
</html>
